package com.whmall.service.crm.module.supplierreview.impl.dao;

import com.whmall.service.crm.module.supplierreview.entity.SupplierReviewTagStatisticsDO;
import com.whmall.service.crm.module.supplierreview.entity.qo.SupplierReviewTagStatisticsQO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * SupplierReviewTagStatisticsMapper
 *
 * @author alex
 * @since 2021/1/18
 */
@Mapper
public interface SupplierReviewTagStatisticsMapper {
    int deleteById(Long id);

    int insertSelective(SupplierReviewTagStatisticsDO record);

    int optimisticUpdateByIdSelective(SupplierReviewTagStatisticsDO record);

    SupplierReviewTagStatisticsDO selectById(Long id);

    List<SupplierReviewTagStatisticsDO> findByCompanyIdAndTagIn(@Param("companyId") Long companyId,
                                                                @Param("tags") Collection<Integer> tags);

    List<SupplierReviewTagStatisticsDO> findByCompanyId(@Param("companyId") Long companyId);

    List<SupplierReviewTagStatisticsDO> findBy(SupplierReviewTagStatisticsQO qo);

}
